from django.contrib import admin
from django.urls import path
from app01.views import login, register, get_captcha, logout, MainPage, Mydata, data_import, authorization_page, \
    resale_token, get_user_id,test_owner,verify_signature
from app01.views import get_user_id, upload
from app01.views import resale_token_list
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    path("admin/", admin.site.urls),
    path("login/", login, name="login"),
    path("register/", register, name="register"),
    path("get_captcha/", get_captcha, name="get_captcha"),
    path("logout/", logout, name="logout"),
    path("mainpage/", MainPage, name="MainPage"),
    path("Mydata/", Mydata, name="Mydata"),
    path("data_import/", data_import, name="data_import"),
    path("authorization_page/", authorization_page, name="authorization_page"),
    path('resale_token/<str:token_id>/', resale_token, name='resale_token'),
    path('resale_token_list/', resale_token_list, name='resale_token_list'),
    path('get-user-id/', get_user_id, name='get_user_id'),
    path('upload/', upload, name='upload'),
    path('test_owner/', test_owner, name='test_owner'),
    path('verify_signature/', verify_signature, name='verify_signature'),

]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
